package com.xwm93up.basic;

import lombok.Data;

/**
 * @Description: desc
 * @Author: xwm93up
 * @Since: 2023/2/24 15:16
 */
public class Apple extends Fruit {

    @Override
    public void eat() {
        super.num = 10;
        System.out.println("eat " + num + " Apple");
    }

    public static void main(String[] args) {
        Fruit fruit = new Apple();
        fruit.eat();
    }
}
